import request from '@/utils/request'

// 获取项目列表
export async function queryProject(body = {}) {
  return request('/project/Project/projectList', {
    method: 'POST',
    body
  })
}

// 获取项目详情
export async function queryProfile(body = {}) {
  return request('/project/Project/projectDetailByProjectId', {
    method: 'POST',
    body
  })
}

// 提交项目详情
export async function postProfile(body = {}) {
  return request('/project/Project/projectEditByProjectId', {
    method: 'POST',
    body
  })
}

export async function projectNew(body = {}) {
  return request('/project/Project/projectAdd', {
    method: 'POST',
    body
  })
}

export async function projectEdit(body = {}) {
  return request('/project/Project/projectEditByProjectId', {
    method: 'POST',
    body
  })
}

export async function projectStaffNew(body = {}) {
  return request('/project/Task/taskAddInterface', {
    method: 'POST',
    body
  })
}

export async function projectStaffRemove(body = {}) {
  return request('/project/Task/taskDeleteInterface', {
    method: 'POST',
    body
  })
}